﻿/*        Global Objects                 */
//Global empty string to contain global key
//Create global app
//Create global array
//Base 

/*        Constructor Functions          */
//Constructor function for two objects:
//Constructor function for Chirp
//Constructor function for Friends

/*        Helper Functions               */
//Create AJAX function
//Create urlHandler
//Create display function to draw from global array
//Display chirperRoom
//Display friendsArea
/*         AJAX                           */
//Call AJAX helper function for GET
//Call AJAX helper function for POST
//Call AJAX helper function for DELETE
//Call AJAX helper function for UPDATE (PUT)

/*    Functions for CRUD Application       */
//POST chirp object to DB
//Extract key from response
//GET changes from DB and update page array
//Create a factory function for AJAX XMLHttpRequest for each new friends array in the /friends directory
//Create a factory function for AJAX XMLHttpRequest Poll for each friends' /chirps directory
//Grab recent object array via call to DB
//Poll the friends directory on friends' DB
//Polling from central DB or make multiple
//callbacks to each friend via subscription model

